Skip to content

chore(deps): bump htmlparser2 from 8.0.2 to 12.0.0 - #110

Closed
dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/npm_and_yarn/htmlparser2-12.0.0
Closed

dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/npm_and_yarn/htmlparser2-12.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Bumps htmlparser2 from 8.0.2 to 12.0.0.

Release notes

Sourced from htmlparser2's releases.

v12.0.0

What's Changed

This release aligns HTML parsing with the WHATWG spec Almost all changes are to HTML mode only — XML mode is unaffected unless noted.

Raw-text & RCDATA tags

  • <iframe>, <noembed>, <noframes>, and <plaintext> are now raw-text tags, their content is no longer parsed as HTML
  • <textarea> now decodes entities like <title> already did
  • Self-closing <script/>, <style/>, etc. now enter their raw-text state (the / is ignored per spec) unless recognizeSelfClosing is enabled

SVG & MathML

  • Tag names inside <svg> are case-adjusted per spec (foreignObject, clipPath, etc.)
  • CDATA sections inside foreign content are treated as text
  • Special-tag detection is disabled inside foreign content
  • Stray </svg> / </math> no longer corrupt the parser's context tracking

Comments & declarations

  • <!-->, <!--->, <!->, <!> now parse as valid comments per spec
  • <?…> and non-DOCTYPE <!…> in HTML mode emit bogus comments instead of being silently dropped
  • <!DOCTYPEhtml> (no space) is recognized as a DOCTYPE
  • Unclosed comments, <!DOCTYPE, <?…, <![CDATA[… at EOF emit the correct token type

Implicit open/close

  • <h1>–<h6> implicitly close other headings
  • <a> closes a previous <a>
  • Nested <form> is ignored when one is already open
  • <image> is rewritten to <img> outside foreign content
  • </> is silently ignored instead of emitted as text

Other fixes

  • Fixed reset() not clearing attribute state, which could leak data across parseComplete() calls

fb55/htmlparser2#2387

Full Changelog: fb55/htmlparser2@v11.0.0...v12.0.0

v11.0.0

Breaking Changes

  • The module is now ESM only fb55/htmlparser2#2381
    • CommonJS require() is not supported in legacy environment anymore. Use import instead.
    • The minimum Node.js version is now 20.19.0.
  • Dependencies have been bumped to their latest major versions: domhandler v6, domutils v4, domelementtype v3, entities v8.
  • The deprecated parseDOM function was removed.

Features

  • Added WebWritableStream for the Web Streams API, enabling direct piping from fetch() response bodies into the parser fb55/htmlparser2#2376

Bug Fixes

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for htmlparser2 since your current version.


Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 29, 2026
Bumps [htmlparser2](https://github.com/fb55/htmlparser2) from 8.0.2 to 12.0.0.
- [Release notes](https://github.com/fb55/htmlparser2/releases)
- [Commits](fb55/htmlparser2@v8.0.2...v12.0.0)

---
updated-dependencies:
- dependency-name: htmlparser2
  dependency-version: 12.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/htmlparser2-12.0.0 branch from fbaec38 to af4e104 Compare October 19, 2026 08:13
@oto-macenauer-absa

Copy link
Copy Markdown
Collaborator

@dependabot rebase

oto-macenauer-absa added a commit that referenced this pull request Nov 11, 2026
…ns (#151)

## Summary

Fixes #150. Dependabot PRs were red for reasons unrelated to whether the
knowledge base works. This replaces the version-pinning assertions with
behavioural ones and stops the Mermaid suite from failing on browser
deprecation noise.

- **Parser parity is tested by behaviour.**
`tests/artifact-checks.spec.js` no longer requires the root
`htmlparser2`/`postcss`/`mermaid` versions to match
`actions/package.json`. Instead it runs `actions/lib/check.selftest.js`
(which pins every rule's findings) against whichever parsers the build
resolves. In CI's E2E job that means the root tree, and the actions job
still covers the `actions/` tree. A root parser that parses differently
fails; one that doesn't can land on its own.
- **Dependabot.** `mermaid` leaves the root `ignore` list, because the
Mermaid E2E tests hold the fixture bundle to rendering. A new `/actions`
npm entry (minor/patch grouped) means the dependencies we ship to docs
repos are bumped too.
- **Console noise.** Chromium in Playwright 1.65 reports reframed's
`iframeWindow.addEventListener("unload", …)` (web-fragments 0.8.2) as
`Permissions policy violation: unload is not allowed in this document.`
That exact message is now ignored. Uncaught page errors and every other
console error still fail.
- **Windows.** `check.selftest.js` normalises CRLF before parsing
`contract/RULES.md`. A Windows checkout failed the catalogue check, and
it matters now that the root suite runs the self-test.
- Comments in `scripts/check-artifact.js` and
`scripts/setup-test-apps.mjs`, and `CLAUDE.md`, no longer claim the two
package files are pinned in step.

## Verification

- `npm test`, Playwright 1.62.1 (current pin): 460 passed, 0 failed.
- Root-only `postcss@8.5.32` + `htmlparser2@12.0.0` swapped into
`node_modules` (what #137 and #110 do): the checker self-test passes.
- Mermaid suite on `@playwright/test@1.65.0` (what #149 brings): 6
failures without this change (same as #149's CI), 8/8 pass with it.

## After merge

Rebasing #137, #110 and #149 should turn them green (#149 also needs
#148 merged for its PR Requirements check).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@oto-macenauer-absa

Copy link
Copy Markdown
Collaborator

@dependabot recreate

1 similar comment
@oto-macenauer-absa

Copy link
Copy Markdown
Collaborator

@dependabot recreate

oto-macenauer-absa added a commit that referenced this pull request Nov 11, 2026
Replaces #110. Dependabot could no longer rebase or recreate it (it
carried a manual merge from master), so this re-applies the same bump on
current master.

Relates to #150: since #151 the root and \`actions/\` may resolve
different parser versions. The checker self-test in
\`tests/artifact-checks.spec.js\` runs against this root htmlparser2 12
and passes locally, along with \`private-registry\` and \`transform\`
(46/46).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/htmlparser2-12.0.0 branch November 11, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant